package sjtu.ist.warehouse4ws.service;


import java.util.List;

import sjtu.ist.warehouse4ws.dao.RolepermissionsDao;

import sjtu.ist.warehouse4ws.model.Rolepermissions;

public class RolepermissionsServiceImpl implements RolepermissionsService {
	
	
    private RolepermissionsDao rolepermissionsDao;
	
	public void setRolepermissionsDao(
			RolepermissionsDao rolepermissionsDao) {
		this.rolepermissionsDao = rolepermissionsDao;
	}


	@Override
	public boolean addRolepermissions(Rolepermissions rolepermissions) {
		// TODO Auto-generated method stub
		rolepermissionsDao.save(rolepermissions);
		return false;
	}


	@Override
	public List getRolepermissionsById(String id) {
		// TODO Auto-generated method stub
		return (List<Rolepermissions>)rolepermissionsDao.findById(id);
	}

}
